.popup {
    position: fixed;
    z-index: 2000;
    pointer-events: all;
    -webkit-overflow-scrolling: touch;
}

.bottom {
    left: 0;
    bottom: 0;
    width: 100%;
}

.top {
    left: 0;
    top: 0;
    width: 100%;
}

.right {
    right: 0;
    min-width: 0;
    height: 100%;
}

.left {
    left: 0;
    min-width: 0;
    height: 100%;
}

.center {
    left: 50%;
    top: 50%;
    min-width: 0;
    min-height: 0;
    transform: translate(-50%, -50%);
}

.default-bottom {
    transform: translateY(100%);
}

.entering-bottom {
    transform: translateY(0);
    transition: all 0.2s ease-in;
}

.exiting-bottom {
    transform: translateY(100%);
    transition: all 0.2s ease-in;
}

.default-center {
    transform: translate(-50%, calc(-50% + 100px));
}

.entering-center {
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-in;
}

.exiting-center {
    transform: translate(-50%, calc(-50% + 100px));
    transition: all 0.2s ease-in;
}

.default-top {
    transform: translateY(-100%);
}

.entering-top {
    transform: translateY(0);
    transition: all 0.2s ease-in;
}

.exiting-top {
    transform: translateY(-100%);
    transition: all 0.2s ease-in;
}

.default-left {
    transform: translateX(-100%);
}

.entering-left {
    transform: translateX(0);
    transition: all 0.2s ease-in;
}

.exiting-left {
    transform: translateX(-100%);
    transition: all 0.2s ease-in;
}

.default-right {
    transform: translateX(100%);
}

.entering-right {
    transform: translateX(0);
    transition: all 0.2s ease-in;
}

.exiting-right {
    transform: translateX(100%);
    transition: all 0.2s ease-in;
}
